Skip to content

Update all deps#382

Merged
gregnazario merged 5 commits intomainfrom
update-all-deps
Feb 27, 2026
Merged

Update all deps#382
gregnazario merged 5 commits intomainfrom
update-all-deps

Conversation

@gregnazario
Copy link
Collaborator

Updates all dependencies accordingly to make the build work correctly, remove warnings, and reduce security issues

React 19 deprecated FormEvent in favor of specific event types.
Updated form submit handlers to use SubmitEvent.
Copilot AI review requested due to automatic review settings February 27, 2026 16:12
@vercel
Copy link

vercel bot commented Feb 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
aptos-docs Ready Ready Preview, Comment Feb 27, 2026 5:06pm

Request Review

@gregnazario
Copy link
Collaborator Author

@cursoragent address CI issue

@cursor
Copy link

cursor bot commented Feb 27, 2026

Fixed the CI failure in tests/mermaid-rendering.test.ts. The issue was on line 131 where import.meta.resolve("astro-mermaid") is not supported in Vitest's module runner environment.

What changed: Replaced fileURLToPath(import.meta.resolve("astro-mermaid")) with a direct path construction using join(ROOT, "node_modules", "astro-mermaid", "astro-mermaid-integration.js"), which achieves the same result without relying on the unsupported import.meta.resolve API.

Verification: All 10 tests pass locally (4 build-output tests are skipped as expected when no dist directory exists). The fix has been committed and pushed to update-all-deps.

Open in Web Open in Cursor 

import.meta.resolve is not supported in Vitest's module runner,
causing CI to fail. Use a direct node_modules path to locate the
astro-mermaid integration entry point instead.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates project dependencies to improve build compatibility, remove warnings, and address security issues. However, it introduces several critical bugs related to React event types and Firebase package imports that will break the application.

Changes:

  • Updated all npm dependencies to their latest versions
  • Changed Firebase imports from modular firebase/auth and firebase/app to scoped @firebase/auth and @firebase/app packages
  • Incorrectly changed React form event types from FormEvent to non-existent SubmitEvent
  • Updated Astro font configuration to use new fontProviders.local() API
  • Downgraded Vite from v7 to v6
  • Simplified package overrides from 19 security-related entries to 4
  • Updated pnpm version and changed script runners from node to tsx

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/stores/auth.ts Changed Firebase imports from firebase/auth to @firebase/auth
src/lib/firebase/auth.ts Changed Firebase imports from firebase/auth to @firebase/auth
src/lib/firebase/app.ts Changed Firebase imports from firebase/app to @firebase/app
src/components/react/Faucet/FaucetForm.tsx Incorrectly changed React event type from FormEvent to non-existent SubmitEvent
src/components/chat-widget/chat-input.tsx Incorrectly changed React event type from FormEvent to non-existent SubmitEvent
package.json Updated all dependencies, downgraded Vite, reduced security overrides, changed script runners to tsx
astro.config.mjs Updated font configuration to use new fontProviders.local() API with options structure
.tool-versions Updated pnpm version to match package.json

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gregnazario gregnazario merged commit e3a5b8d into main Feb 27, 2026
7 checks passed
@gregnazario gregnazario deleted the update-all-deps branch February 27, 2026 19:53
0xmaayan added a commit that referenced this pull request Mar 2, 2026
The deps update in #382 bumped @astrojs/vercel from 9.0.2 to 9.0.4,
which changed dist/index.js enough that the cspMode patch no longer
applied. The .d.ts hunk still matched so TypeScript accepted the
config, but the runtime JS was unpatched — every static page got its
own CSP route entry in config.json, exceeding Vercel's 5MB body limit.

Regenerated the patch against 9.0.4 so the global cspMode collapses
all per-route CSP headers into a single catch-all route.

Made-with: Cursor
0xmaayan added a commit that referenced this pull request Mar 2, 2026
The deps update in #382 bumped @astrojs/vercel from 9.0.2 to 9.0.4,
which changed dist/index.js enough that the cspMode patch no longer
applied. The .d.ts hunk still matched so TypeScript accepted the
config, but the runtime JS was unpatched — every static page got its
own CSP route entry in config.json, exceeding Vercel's 5MB body limit.

Regenerated the patch against 9.0.4 so the global cspMode collapses
all per-route CSP headers into a single catch-all route.

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants